home *** CD-ROM | disk | FTP | other *** search
/ CD School House 9 / CD School House 9.0 - Wayzata Technology (1994).iso / pc / dos / networks / tpapi / nwwrkstn.pa1 < prev    next >
Text File  |  1992-03-02  |  4KB  |  90 lines

  1. {!R! FONT 15; FTMD 15; EXIT;}
  2.  
  3.  
  4. {***************************************************************************}
  5. {** Program : NWWRKSTN                                                    **}
  6. {***************************************************************************}
  7. {** Version : 1.3             ** Started : 11/11/91  ** Ended :   /  /    **}
  8. {***************************************************************************}
  9. {******************************** Description ******************************}
  10. {***************************************************************************}
  11. {** OOP library for Netware API                                           **}
  12. {**                                                                       **}
  13. {** This unit forms the second level object : WORKSTAT                    **}
  14. {** This object is a descandent of          : NETWARE                     **}
  15. {**                                                                       **}
  16. {**                                                                       **}
  17. {**                                                                       **}
  18. {**                                                                       **}
  19. {***************************************************************************}
  20. {******************************** Information ******************************}
  21. {***************************************************************************}
  22. {** Provides Netware Workstation Services                                 **}
  23. {**                                                                       **}
  24. {**                                                                       **}
  25. {**                                                                       **}
  26. {** This code is (c) 1991,1992 Tony Covelli                               **}
  27. {** Portions (c) Novell Inc,                                              **}
  28. {**                                                                       **}
  29. {**                                                                       **}
  30. {***************************************************************************}
  31.  
  32. {$I NETWARE.INC}
  33.  
  34. UNIT NWWRKSTN;
  35.  
  36. INTERFACE
  37.  
  38. USES
  39.  
  40.   netware, nwvar;
  41.  
  42. TYPE
  43.  
  44.   pWorkStatOBJ = ^WorkStatOBJ;
  45.   WorkStatOBJ  = object (NetwareOBJ)
  46.  
  47.     CONSTRUCTOR Init;
  48.  
  49.     PROCEDURE   EndOfJob                  (Process : WORD);
  50.  
  51.     FUNCTION    GetConnectionID           (FileServerName : ObjectNameType; VAR ConnectionID : WORD) : WORD;
  52.  
  53.     FUNCTION    GetDefaultConnectionID : WORD;
  54.  
  55.     PROCEDURE   GetFileServerName         (ConnectionID : WORD; VAR FileServerName : ObjectNameType);
  56.  
  57.     FUNCTION    GetNetwareShellVersion    (VAR MajorVersion, MinorVersion, RevisionLevel : BYTE) : WORD;
  58.  
  59.     FUNCTION    GetNumberOfLocalDrives : WORD;
  60.  
  61.     FUNCTION    GetPreferredConnectionID : WORD;
  62.  
  63.     FUNCTION    GetPrimaryConnectionID : WORD;
  64.  
  65.     PROCEDURE   GetWorkstationEnvironment (VAR OperatingSystemType, OperatingSystemVersion,
  66.                                            HardwareType, ShortHardwareType : String40Type);
  67.  
  68.     FUNCTION    IsConnectionIDInUse       (ConnectionID : WORD) : WORD;
  69.  
  70.     FUNCTION    SetEndOfJobStatus         (EndOfJobFlag : BYTE) : BYTE;
  71.  
  72.     FUNCTION    SetNetwareErrorMode       (ErrorMode : BYTE) : BYTE;
  73.  
  74.     PROCEDURE   SetPreferredConnectionID  (ConnectionID : WORD);
  75.  
  76.     PROCEDURE   SetPrimaryConnectionID    (ConnectionID : WORD);
  77.  
  78.     DESTRUCTOR  Done; VIRTUAL;
  79.  
  80.  
  81.     PRIVATE
  82.  
  83.     FUNCTION    ReadPropertyValue         (BinderyObjectName : ObjectNameType; BinderyObjectType : OT_BinderyType;
  84.                                            PropertyName : PropertyNameType; SegmentNumber : WORD;
  85.                                            VAR PropertyValue : PropertyValueType; VAR MoreSegments,
  86.                                            PropertyFlags : BYTE) : WORD;
  87.  
  88.   END;
  89.  
  90.